//
//  UIView+WSQBadge.h
//  Mermaid Trip customer
//
//  Created by 翁胜琼 on 2019/2/16.
//  Copyright © 2019 宁波神凤海洋世界有限公司. All rights reserved.
//  使用 runtime 为所有 UIView 添加小圆点

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (WSQBadge)


// 需要显示的值
@property (copy,nonatomic) NSString *sq_badgeValue;
// 字体名称
@property (copy,nonatomic) NSString *sq_badgeFontname;
// 字体大小
@property (nonatomic,assign) CGFloat sq_badgeFontSize;
// 字颜色
@property (strong,nonatomic) UIColor *sq_badgeFontColor;
// 边框宽度
@property (nonatomic,assign) CGFloat sq_badgeBorderWidth;
// 边框颜色
@property (strong,nonatomic) UIColor *sq_badgeBorderColor;
// 背景颜色
@property (strong,nonatomic) UIColor *sq_badgeBackgroundColor;

@property (nonatomic, strong) UILabel *sq_badgeLabel;
@property (nonatomic,assign) CGFloat sq_topPadding;
@property (nonatomic,assign) CGFloat sq_rightPadding;

/**
 *  显示小红点
 *  @magin 小红点距离控件上方距离
    @rightPadding 小红点距离控件右边距离
 */

- (void)showBadgeWithTopPadding:(CGFloat)magin
                   rightPadding:(CGFloat)rightPadding;


/**
 *  隐藏小红点
 */
- (void)hidenBadge;


@end

NS_ASSUME_NONNULL_END
